USE [aircond]
GO

/****** Object:  Table [dbo].[GData_AUD]    Script Date: 03/15/2013 00:04:58 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[GData_AUD](
	[gid] [smallint] NOT NULL,
	[REV] [int] NOT NULL,
	[REVTYPE] [smallint] NULL,
	[ip] [varchar](255) NULL,
	[name] [varchar](255) NULL,
PRIMARY KEY CLUSTERED 
(
	[gid] ASC,
	[REV] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

ALTER TABLE [dbo].[GData_AUD]  WITH CHECK ADD  CONSTRAINT [FK8D7C65E2BABE8053] FOREIGN KEY([REV])
REFERENCES [dbo].[AUD_REVISION] ([id])
GO

ALTER TABLE [dbo].[GData_AUD] CHECK CONSTRAINT [FK8D7C65E2BABE8053]
GO

